<template>
  <div class="wrapper" @click="refreshto">
     <div class="cell">
          <div class="left">
          {{label}}
      </div>
      <div class="right">
        {{desc}}
      </div>
      <span class="iconfont iconjiantou1"></span>
     </div>
  </div>
</template>

<script>
export default {
    // 获取从父组件传来的数据
    props: ['label','desc'],
    methods: {
        // 点击触发事件,把事件传递给父组件
        refreshto(){
            this.$emit('jum',this.label);
        }
    }
    

}
</script>

<style lang="less" scoped>
    .wrapper{
        padding-left: 5.556vw;
    }
    .cell{
        display: flex;
        justify-content: space-between;
        height: 13.889vw;
        line-height: 13.889vw;
        border-bottom: 1px solid #eee;
        align-items: center;
    }
    .right{
      flex: 1;
      text-align: right;
       font-size: 14px;
        color:#999
    }
    .iconfont{
        font-size: 14px;
        color:#999;
        padding: 0 2.778vw;
    }
</style>